set /p checkoutRemoteBranch=Please enter the 'Remote Branch Name' to be checked out:

echo Remote branch name entered=%checkoutRemoteBranch%

set work_path=%~dp0
cd /d %work_path%
cd ../
set work_path_tagert=%cd%


echo ====Unsubmitted requests need to be processed before detection!!! Otherwise, it cannot be detected!!!====




for /d %%s in (%work_path_tagert%\*) do (
cd %%s
echo Check out branches= %% %%s %% %checkoutRemoteBranch%
git checkout %checkoutRemoteBranch%

)


timeout /t 2 >nul
echo ok...



